package com.cyx.service;

import com.cyx.mapper.UserMapper;
import com.cyx.pojo.Book;
import com.cyx.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.lang.Nullable;
import org.springframework.stereotype.Service;

import java.util.List;


public interface UserService {
    int addUser(User user);
    User getUser(int userId);
    List<User> getUsers(@Nullable String userName, @Nullable String address);
    int updateUser(User user);

    int addUsers(List<User> userList);

    boolean addUserAndBook(User user, Book book) throws Exception;
}
